package com.cqw.annotation;

import com.cqw.enums.BusinessTypeEnum;
import com.cqw.enums.OperatorTypeEnum;

import java.lang.annotation.*;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-05-08 11:01
 * @Description: 日志
 */
@Target({ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /**
     * 模块
     */
    String title() default "";

    /**
     * 功能
     */
    BusinessTypeEnum businessType() default BusinessTypeEnum.OTHER;

    /**
     * 操作人类别
     */
    OperatorTypeEnum operatorType() default OperatorTypeEnum.MANAGE;


    /**
     * 是否保存请求的参数
     */
    public boolean isSaveRequestData() default true;


}
